package com.bw.controller;

import com.bw.domain.TBrand;
import com.bw.service.TBrandService;
import com.bw.utils.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author bobo棒
 * @date 2024年04月08日 15:53
 */

@RestController
@RequestMapping("brand")
public class BrandController {
    @Autowired
    TBrandService tBrandService;

    @RequestMapping("list")
    public Result list(){
        List<TBrand> list = tBrandService.list();
        return Result.success(list);
    }
}
